#version 330 core
out vec4 fragColor;

in vec3 Normal;
in vec3 fragPos;

uniform samplerCube skybox;
uniform vec3 cameraPos;
void main(){
	vec3 dir = normalize(fragPos-cameraPos);
	vec3 ref = reflect(dir,normalize(Normal));
	fragColor=texture(skybox,ref);
}